home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / dsp / 56000tar.z / 56000tar / 56000 / codec / linlog.hlp < prev    next >
Text File  |  1991-11-26  |  2KB  |  46 lines

  1.          Name: LINLOG.ASM
  2.          Type: Assembler Macros
  3.       Version: 1.0
  4.  Date Entered:  20-Apr-87
  5.   Last Change:  20-Apr-87
  6.  
  7.   Description: Linear PCM to Companded CODEC Data Conversion Macros
  8.  
  9.  These macros convert 13 bit, linear fractional data into 8 bit companded
  10.  data suitable for transmission to CODEC D/A converters used in
  11.  telecommunications applications.  Four companded formats are
  12.  supported for the Motorola MC14400 CODEC series and similar devices.
  13.  
  14.  
  15.  
  16.  Macro Name    Description
  17.  ----------    -----------
  18.  linsm         linear to sign magnitude conversion with mu-law companding.
  19.  
  20.  linmu         linear to mu-law companded conversion without zero code
  21.                suppression.
  22.  
  23.  lind3d4       linear to mu-law companded conversion with D3/D4 format
  24.                zero code suppression.
  25.  
  26.  linal         linear to a-law companded conversion with CCITT (G7.12)
  27.                format.
  28.  
  29.  Input data is a 56 bit number in accumulator a.  Although any 56 bit
  30.  number may be used, the 13 bit linear fraction is assumed to be in
  31.  the most significant bits of a1.  Values outside this fractional range
  32.  are automatically converted to a maximum positive or negative companded
  33.  value (dynamic range limiting).
  34.  
  35.  Output data is in the 8 most significant bits of a1.  The 16 LSB's
  36.  of a1 are zero.
  37.  
  38.   -------------------------------------------------------
  39.  | Sign |    Chord Number    |       Step Number         |
  40.  | Bit  |                    |                           |
  41.  |__23__|__22_____21_____20__|__19_____18_____17_____16__|
  42.  
  43.  These macros execute in 23-25 instruction cycles worst case and require
  44.  16-18 words of program memory.  They do not use the DSP56001 internal
  45.  mu/a-law lookup table.
  46.